#include <iostream>
using namespace std;
class CHI;
class USA{
public:
    USA(int value)
    :_value(value)
    {

    
    }
    friend class CHI;
    void print(){
        cout<<_value<<endl;
    }
private:
double _value;

};

class CHI{
public:
    friend class USA;
    CHI(int value)
    :_value(value)
    {

    }
    CHI &operator=(USA & s){
        _value=s._value/7.14;

        return *this;
    }
    void print(){
        cout<<_value<<endl;
    }
private:
double _value;

};

void test(){
    USA usa(100);
    CHI chi(100);
    usa.print();
    chi.print();
    chi=usa;
    chi.print();
}
int main(int argc, char * argv[]){
    test();    
    return 0;
}

